<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="styles.css">
    <script>
        function returnToLogin() {
            window.location.href = "login.html";
        }
    </script>
</head>
<body>
    <div class="container">
        <h2>注册</h2>
        <form action="/RegisterServlet" method="post">
            <!-- 在这里添加注册表单的输入字段 -->
            <div class="input-group">
                <label for="username">用户名：</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="input-group">
                <label for="password">密码：</label>
                <input type="password" id="password" name="password" required>
            </div>
            <!-- 其他注册表单字段 -->
            <button type="submit">注册</button>
        </form>
        <p>已有账号？返回<a href="login.html">登录</a></p>
    </div>
</body>
</html>
